package com.sgb.kjwl.model.entity.jicai;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.model.entity.PickSelectEntity2;

import java.io.Serializable;

/**
 * Time:2021/8/11
 * AUTHOR:F_Q
 * Description:
 */
public class JiCaiTypeBean<T> extends PickSelectEntity2 implements IPickerViewData , Serializable {

    @SerializedName("id")
    private String id;
    @SerializedName(value = "children", alternate = {"childrenList"})
    private T children;

    @SerializedName("name")
    private String name;
    @SerializedName("parentId")
    private String parentId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getChildren() {
        return children;
    }

    public void setChildren(T children) {
        this.children = children;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public JiCaiTypeBean() {
    }

    public JiCaiTypeBean(String id, String name, String no, String simpleName) {
        super(no,name);
        this.id = id;
        this.simpleName=simpleName;
    }
    public JiCaiTypeBean(String id, String name, String no) {
        super(no,name);
        this.id = id;
    }
    @Override
    public String getPickerViewText() {
        return getName();
    }

}
